package com.example.jurisdiction.Service.impl;

import java.util.List;

import com.example.jurisdiction.Mapper.jurisdiction_roleMapper;
import com.example.jurisdiction.Service.jurisdiction_roleService;
import com.example.jurisdiction.dto.user_roleDto;
import entity.jurisdiction_role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class jurisdiction_roleServiceimpl implements jurisdiction_roleService {

	@Autowired
	private jurisdiction_roleMapper jurisdiction_roleMapper;
	@Override
	public List<jurisdiction_role> getJurisdiction_role(int id) throws Exception {
		// TODO Auto-generated method stub
		return this.jurisdiction_roleMapper.getJurisdiction_role(id);
	}
	@Override
	public int delJ_role(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return this.jurisdiction_roleMapper.delJ_role(id);
	}
	@Override
	public int addJ_role(user_roleDto u) throws Exception {
		// TODO Auto-generated method stub
		return this.jurisdiction_roleMapper.addJ_role(u);
	}

}
